package com.example.controller;

import com.example.feign.CustomerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CustomerServiceController {

    @Autowired
    private CustomerFeign customerFeign;

    @GetMapping("customerDoCar")
    public String customerDoCar(){
        System.out.println("客户来租车");
        String rent = customerFeign.rent();
        return rent;
    }

}
